package com.shanzmoo.db.module.product.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shanzmoo.db.module.product.domain.query.ScoreQueryVO;
import com.shanzmoo.db.module.product.domain.vo.ProductScoreVO;
import com.shanzmoo.db.module.product.domain.vo.ScoreDetailVO;
import com.shanzmoo.db.module.product.entity.ProductScoreEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xqz
 * @since 2021-04-21
 */
public interface ProductScoreMapper extends BaseMapper<ProductScoreEntity> {

    List<ProductScoreVO> getScoreSkuPlatList(ScoreQueryVO scoreQueryVO);

    IPage<ProductScoreVO> getProductScoreList(@Param("page") Page page, @Param("scoreQueryVO") ScoreQueryVO scoreQueryVO);

    Integer jumpSkuBrother(@Param("sku") Integer sku);

    ScoreDetailVO getScoreDetailBySku(@Param("sku")String sku);
}
